﻿using System;
using System.Collections.Generic;
using System.Text;

namespace PX.ExpertGain
{
	public class Database : Tony.SQLServer.DataLayer
	{
		#region 表结构

		public int ID = 0;
		public int STATUS = 1;
		public int EXPERTUSERID = 2;
		public int NAME = 3;
		public int IMAGEID = 4;
		public int CONTENT = 5;
		public int OBTAINDATE = 6;
		public int DATETIME = 7;
		public int EXPERTDEPARTMENTID = 8;
		public int USERID = 9;
		public int CONTENTFILECONTENTID = 10;

		#endregion 表结构

		/// <summary>
		/// 构造函数
		/// </summary>
		public Database()
			: base("ExpertGain", 0, 1)
		{
			_strOrder = " ORDER BY CAST("+listStructure[OBTAINDATE].strName+" AS DATETIME) DESC";
		}
	}
}
